import java.io.*;
class FileExe{
public static void main(String args[]){
int count;
	 byte b[]=new byte[1024];
	 FileInputStream fis;
	 FileOutputStream fos;
	 try{
	      fis=new FileInputStream(args[0]);
	}
	catch(FileNotFoundException e){
	      System.out.println("InputFile is not found!");
	      return;
	 }
	try{
	      fos=new FileOutputStream(args[1]);
	      }
	catch(FileNotFoundException e){
	      System.out.println("OutputFile is not found!");
	      return;
	}
	catch(ArrayIndexOutOfBoundsException e){
	      System.out.println();
	      return;
}
	try{
	     while((count=fis.read(b,0,1024))!=-1){
fos.write(b,0,count);}
	      }
	catch(IOException e){
	       System.out.println("Error:"+e);
	       return;
	}
}
}

